package com.rc.saas.mini.model.enterprise;
import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.rc.saas.mini.common.base.BaseModel;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @Description 
 * @Author  
 * @Date: 2022-04-24
 */

@ApiModel(value=" enterprise_submember_share ", description=" 企业子账号共享余额（share_amount） ")
public class EnterpriseSubmemberShare extends BaseModel{ 

    @ApiModelProperty(value = "null")
    private Long submemberShareId;
 
    @ApiModelProperty(value = "运营商")
    private String tenantCode;
 
    @ApiModelProperty(value = "企业子会员用户ID")
    private Long memberId;
 
    @ApiModelProperty(value = "企业ID,关联enterprise_member表")
    private Long enterpriseId;
 
    @ApiModelProperty(value = "企业主帐号会员ID,关联enterprise表")
    private Long enterpriseMemberId;
 
    @ApiModelProperty(value = "限额类型 0 日限额 1 周限额 2 月限额 默认0")
    private String shareType;
 
    @ApiModelProperty(value = "每日限定电量")
    private BigDecimal fixedPower;
 
    @ApiModelProperty(value = "每日使用电量")
    private BigDecimal sharePower;
 
    @ApiModelProperty(value = "固定金额(根据此金额和类型来定时修改可用余额)")
    private BigDecimal fixedAccount;
 
    @ApiModelProperty(value = "每日使用金额")
    private BigDecimal shareAccount;
 
    @ApiModelProperty(value = "开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date beginTime;
 
    @ApiModelProperty(value = "结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;
 
    @ApiModelProperty(value = "启用状态 0关闭 1 启用 默认0")
    private String status;
 
    @ApiModelProperty(value = "创建人")
    private String createdBy;
 
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdTime;
 
    @ApiModelProperty(value = "null")
    private String lastUpdatedBy;
 
    @ApiModelProperty(value = "null")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date lastUpdatedTime;
 
    public Long getSubmemberShareId() {
        return submemberShareId;
    }

    public void setSubmemberShareId(Long submemberShareId) {
        this.submemberShareId = submemberShareId;
    }

    public String getTenantCode() {
        return tenantCode;
    }

    public void setTenantCode(String tenantCode) {
        this.tenantCode = tenantCode;
    }

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public Long getEnterpriseId() {
        return enterpriseId;
    }

    public void setEnterpriseId(Long enterpriseId) {
        this.enterpriseId = enterpriseId;
    }

    public Long getEnterpriseMemberId() {
        return enterpriseMemberId;
    }

    public void setEnterpriseMemberId(Long enterpriseMemberId) {
        this.enterpriseMemberId = enterpriseMemberId;
    }

    public String getShareType() {
        return shareType;
    }

    public void setShareType(String shareType) {
        this.shareType = shareType;
    }

    public BigDecimal getFixedPower() {
        return fixedPower;
    }

    public void setFixedPower(BigDecimal fixedPower) {
        this.fixedPower = fixedPower;
    }

    public BigDecimal getSharePower() {
        return sharePower;
    }

    public void setSharePower(BigDecimal sharePower) {
        this.sharePower = sharePower;
    }

    public BigDecimal getFixedAccount() {
        return fixedAccount;
    }

    public void setFixedAccount(BigDecimal fixedAccount) {
        this.fixedAccount = fixedAccount;
    }

    public BigDecimal getShareAccount() {
        return shareAccount;
    }

    public void setShareAccount(BigDecimal shareAccount) {
        this.shareAccount = shareAccount;
    }

    public Date getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(Date beginTime) {
        this.beginTime = beginTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public String getLastUpdatedBy() {
        return lastUpdatedBy;
    }

    public void setLastUpdatedBy(String lastUpdatedBy) {
        this.lastUpdatedBy = lastUpdatedBy;
    }

    public Date getLastUpdatedTime() {
        return lastUpdatedTime;
    }

    public void setLastUpdatedTime(Date lastUpdatedTime) {
        this.lastUpdatedTime = lastUpdatedTime;
    }

}
